package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author huangxin
 * @description
 * @date 2020/12/2
 */
@Mapper
public interface CustomerDao {
    List<Customer> queryAllCustomersByCondition(@Param("customerName") String customerName);

    void saveCustomer(@Param("customer") Customer customer);

    void updateCustomerById(@Param("customer") Customer customer);

    void deleteCustomersBatch(@Param("idList") List<String> idList);

    List<Map<String, Object>> getAllCustomers();
}
